PPrint

Prints the current publication using the print options set by the various print dialogs and commands. Optionally, specifies the number of copies, page range, and, for printing to disk, the name of the print file and the name of the PC printer.


Command constructor

PPrint(short nCopies, short nFirstPage, short nLastPage, const char * fPrintToDisk, const char * sPCPrinter);
short nCopies;
Number of copies to print
kParmDontCare to print the number of copies specified with the PPrintDoc command
short nFirstPage;
First page to print
0 to print all pages in the publication
kParmDontCare to print the range specified with the PPrintDoc command
short nLastPage;
Last page of the range to print
kParmDontCare to print the range specified with the PPrintDoc command
const char * fPrintToDisk;
Filename for print file (to a maximum of 91 characters), to print publication to disk (either as a PostScript, .EPS, or .SEP file)
Use an empty string to not print to disk
const char * sPCPrinter;
Name of the printer when printing to disk in Windows.
Use an empty string to not print to disk
Number of copies. The nCopies parameter of the PPrint command overides the number of copies specified with the nCopies parameter of the PPrintDoc command.

Page range. The nFirstPage and nLastPage parameters override the page range specified with the sRange parameter of the PPrintDoc command. To specify more than one range of pages, use the PPrintDoc command.

Layout view only. The PPrint command works only in layout view.

Printing to disk. If you include a filename for fPrintToDisk, PageMaker creates a PostScript print file, even if you did not turn on Write PostScript to File with the PPrintOptionsPS command. To specify the type of PostScript file (PostScript, .EPS, or .SEP), precede the print command with the PPrintOptionsPS command.

Example. To print "mypub" to disk as a PostScript file in Windows or Mac:

PPrintOptionsPS(3, 0,0, 0, 0, 0, 0, normalpostscript, off);
#ifdef WINDOWS
PPrint(kParmDontCare, kParmDontCare, kParmDontCare, "mypub", "HPLaserJet III on LPT1:", "");
#else // Macintosh
PPrint(kParmDontCare, kParmDontCare, kParmDontCare, "mypub", "", "");
#endif

The filename can also contain a path. For example:

//Windows
PPrint(kParmDontCare, kParmDontCare, kParmDontCare, "c:\PM\MyFolder\MyPub", "HPLaserJet III on LPT1:");


See also

The PPrintColor, PPrintDoc, PPrintInk, PPrintOptions, PPrintPaperPS, and PPrintTo commands

The PGetPrintCaps, PGetPrintColor, PGetPrintDoc, PGetPrinterList, PGetPrintInk, PGetPrintOptions, PGetPrintOptionsPS, PGetPrintPaperPS, PGetPrintPPDs, PGetPrintPS, PGetPrintScreens, and PGetPrintTo queries

Adobe PageMaker 6.5 Help > Commands > File > Print


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support